# gbconv common share program file.
# Grown by LiuZhiyan.
# http://lzy.javaeye.com/
# lzy.dev@gmail.com

require 'pathname'

APP_NAME = 'gbconv'
APP_DEAMON_NAME = "#{APP_NAME}d"

def workdir_path
	Pathname.new(File.dirname(__FILE__)).realpath
end

def pid_filepath
	"#{workdir_path}/#{APP_NAME}.pid"
end

def conf_default_filepath
	"#{workdir_path}/#{APP_DEAMON_NAME}.conf"
end

def log_default_filepath
	"#{workdir_path}/#{APP_NAME}.log"
end
